home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / APP / E-L / Edit II 202.sea / Edit II 202 Folder / Edit II Doc next >
Text File  |  1992-05-14  |  17KB  |  833 lines

  1. Edit II Version 2.0.2
  2.  
  3. © 1990-92 Kenneth Seah
  4.  
  5. Portions © by Symantec
  6.  
  7.  
  8.  
  9. An enhanced text editor for the Macintosh
  10.  
  11.  
  12.  
  13. 0.    Prologue
  14.  
  15.  
  16.  
  17. This application is copyrighted by Kenneth Seah and is distributed as shareware. You are
  18. welcome to try out Edit II for a week or two and if you decide that it's something you want to use,
  19. send a check drawn on a US Bank or a draft for US$15 made out to me at the address below,
  20. enclosing the little questionaire.  I'll answer your problems and consider bug fixes via
  21. electronic mail (Internet, America OnLine or GEnie) if you are registered.
  22.  
  23.  
  24.  
  25. Otherwise, give a copy of it to a friend, enclosing this file too and trash your copy (since it takes
  26. up valuable space on your disk).
  27.  
  28.  
  29.  
  30. I'll consider that you have been registered once you have sent in your shareware fee.  Upgrades
  31. will be posted to America OnLine, GEnie and Internet.  I can work out a 'site licence' fee if you
  32. need several copies installed at your place.
  33.  
  34.  
  35.  
  36. For commercial distribution and correspondence, please contact:
  37.  
  38.  
  39.  
  40. Kenneth Seah
  41.  
  42. P O Box 8565
  43.  
  44. Austin, TX 78713-8565
  45.  
  46.  
  47.  
  48. GEnie: K.SEAH
  49.  
  50. America OnLine: KSeah
  51.  
  52. Internet: kseah@procyon.austin.tx.us
  53.  
  54.  
  55.  
  56. 1.    Introduction
  57.  
  58.  
  59.  
  60. Edit II is intended as a replacement for the Consulair Edit text editor but which alllows the use
  61. of the cursor keys on the Mac keyboard for navigation. Additionally, the num lock LED on the
  62. extended keyboard is used to indicate whether the cursor pad or the numeric pad mode is on.  The
  63. home, end, page up, page down keys will also work, as will the delete right (del) key.  One level
  64. of undo is supported.  You can launch Edit II by double clicking old Edit files (since Edit II uses
  65. the same creator signature as Edit, that is, EDIT). This means that you might want to rebuild the
  66. desktop after installing Edit II.
  67.  
  68.  
  69.  
  70. Edit II requires System Software 4.1 or later and above and is Multifinder-friendly.  It is also
  71. 32-bit clean and runs fine under System 7.  Edit II now handles System 7 stationery documents.
  72.  
  73.  
  74.  
  75. This program is compiled using Think C 5.0.2 and uses the Capps’ Editor Toolkit.
  76.  
  77.  
  78.  
  79. 2.    Menus
  80.  
  81.  
  82.  
  83. Edit II works just like Consulair's Edit.  Each of the menus and their respective commands are
  84. described in the subsequent paragraphs.
  85.  
  86.  
  87.  
  88. File menu
  89.  
  90.  
  91.  
  92. New
  93.  
  94.     Creates a new window named 'Untitled-N' for editing.
  95.  
  96.  
  97.  
  98. Open...
  99.  
  100.     Displays the standard file open dialog box to allow the selection of a file to edit.  The dialog
  101. box will display all files of type 'TEXT', 'RRRS' (Red Ryder script files) and 'ttro'
  102. (TeachText read-only text files).  Stationery documents under System 7 will be opened as
  103. 'Untitled-N' windows.
  104.  
  105.  
  106.  
  107. Close
  108.  
  109.     Closes the frontmost editing window.  If the file has been changed in any way, the standard
  110. file save dialog box will be displayed.
  111.  
  112.  
  113.  
  114. Save
  115.  
  116.     Saves the frontmost window to its file on disk.  If the file has not been previously saved,
  117. perform a 'Save As...' operation.
  118.  
  119.  
  120.  
  121. Save As...
  122.  
  123.     Saves the frontmost window to a differently named file by presenting the standard file save
  124. dialog box.
  125.  
  126.  
  127.  
  128. Revert
  129.  
  130.     Reverts the frontmost window to the most recently saved version of the file.  A prompt
  131. message is displayed to confirm the action.
  132.  
  133.  
  134.  
  135. Page Setup...
  136.  
  137.     Displays the standard printer Page Setup dialog box.
  138.  
  139.  
  140.  
  141. Print
  142.  
  143.     Displays the standard printer Print dialog box to initiate printing of the frontmost
  144. window.
  145.  
  146.  
  147.  
  148. Transfer
  149.  
  150.     Displays the standard file selection dialog box to choose an application program to run.
  151.  
  152.  
  153.  
  154. Quit    
  155.  
  156.     Quits Edit II after prompting for saving of any changed windows.
  157.  
  158.  
  159.  
  160. Edit menu
  161.  
  162.  
  163.  
  164. Undo
  165.  
  166.     Reverts from the previous editing operation.
  167.  
  168.  
  169.  
  170. Cut
  171.  
  172.     Removes the currently selected text and copies it into the clipboard.
  173.  
  174.  
  175.  
  176. Copy
  177.  
  178.     Copies the currently selected text into the clipboard without deleting it.
  179.  
  180.  
  181.  
  182. Paste
  183.  
  184.     Pastes the clipboard text at the insertion point.  If a range has been selected, then the
  185. pasted text will replace the selection.
  186.  
  187.  
  188.  
  189. Clear
  190.  
  191.     Deletes the currently selected text without copying it to the clipboard.
  192.  
  193.  
  194.  
  195. Select All
  196.  
  197.     Selects all the text in the frontmost window.
  198.  
  199.  
  200.  
  201. Search menu
  202.  
  203.  
  204.  
  205. Find...
  206.  
  207.     Displays the 'find and replace' dialog box for entry of search (Find) and replacement
  208. (Replace with) strings.  GREP-style searching is available (see later on how to define
  209. GREP search and replacement strings).  The 'find and replace' dialog box has several
  210. options:
  211.  
  212.  
  213.  
  214.     'Match Words' will only flag a match if there is an exact word for word match with the
  215. search string.
  216.  
  217.  
  218.  
  219.     'Wrap Around' will flag matches even when the words wrap over at the end of a line.
  220.  
  221.  
  222.  
  223.     'Ignore Case' will flag matches even when the cases (capitals and small letters) do not
  224. match but the letters do.
  225.  
  226.  
  227.  
  228.     There is an option to do multi-file searches of all TEXT-type files inside a folder.  The
  229. multi-file search is activated by clicking on the Multi-File Search checkbox which brings
  230. up the standard file selection dialog box.  Selecting a TEXT-type file will initiate
  231. multi-file searches of the search string for all TEXT-type files within the folder.  Note
  232. that multi-file searching does not descend into subfolders (i.e. one folder level only).
  233.  
  234.  
  235.  
  236.     Cutting and pasting of text selections is allowed into the search and replacement strings in
  237. the 'find and replace' dialog box.  This is achieved by using the command-C and command-V
  238. combinations.  If you want to enter the tab or return characters in the Find dialog box, key
  239. in command-tab and command-return respectively.
  240.  
  241.  
  242.  
  243.     Search and replacement strings are retained between searches.  The 'Don't Find' button
  244. will retain the search and replacement string entries but will not initiate any searches. 
  245. The 'Cancel' button on the other hand, will ignore any entries made for these strings.
  246.  
  247.  
  248.  
  249. Enter Selection
  250.  
  251.     Puts the currently selected text into the search string.
  252.  
  253.  
  254.  
  255. Replace
  256.  
  257.     Replaces the currently selected text with the replacement string.
  258.  
  259.  
  260.  
  261. Replace and Find Again
  262.  
  263.     Replaces the currently selected text with the replacement string and searches for the next
  264. occurrence of the search string.
  265.  
  266.  
  267.  
  268. Replace All...
  269.  
  270.     Replaces all occurences of the search string with the replacement string.  Prompts for
  271. confirmed replacement if required.
  272.  
  273.  
  274.  
  275. Find in Next File
  276.  
  277.     Only operable under multi-file searches – will look for occurence of the search string in
  278. the next file in the specified folder.
  279.  
  280.  
  281.  
  282. Go to Top
  283.  
  284. Go to Bottom
  285.  
  286.     Move the insertion point to the beginning or end of the file, respectively.
  287.  
  288.  
  289.  
  290. Go to Line#...
  291.  
  292.     Displays a dialog and moves to the specified line.
  293.  
  294.  
  295.  
  296. Goodies menu
  297.  
  298.  
  299.  
  300. Shift Left
  301.  
  302. Shift Right
  303.  
  304.     Moves the selected text one space to the left or right.
  305.  
  306.  
  307.  
  308. Balance
  309.  
  310.     Extends current selection to encompass the next level of enclosing braces {}, brackets []
  311. or parentheses ().  A beep means that the text could not be balanced. [Great for C and Lisp
  312. people!]
  313.  
  314.  
  315.  
  316. Add LFs
  317.  
  318.     Adds linefeed characters to the end of every line.
  319.  
  320.  
  321.  
  322. Strip LFs
  323.  
  324.     Removes linefeed characters from the text.
  325.  
  326.  
  327.  
  328. Wrap to Column...
  329.  
  330.     Wraps the text to a user-specified column.
  331.  
  332.  
  333.  
  334. Wrap to Window
  335.  
  336.     Wraps the text to the window width.
  337.  
  338.  
  339.  
  340. Unwrap
  341.  
  342.     Almost the reverse of the above wraps.  What Unwrap does is to replace all single
  343. occurences of the 'return' character by a space and leave multiple runs of returns
  344. untouched.  Thus a 'paragraph' is recognized as ending in two or more returns.
  345.  
  346. Remove Invisibles
  347.  
  348.     Removes all the invisible (non-printing) characters with the exceptions of tab, return
  349. and linefeed.
  350.  
  351.  
  352.  
  353.  
  354.  
  355. Options menu
  356.  
  357.  
  358.  
  359. Font
  360.  
  361. Size
  362.  
  363. Creator
  364.  
  365.     Select the font, size and  creator for the file being edited.  The size submenu has 'Larger',
  366. 'Smaller' and 'Other...' commands to allow for selection of non-standard sizes.  The
  367. creators supported by Edit II are:
  368.  
  369.  
  370.  
  371. EDIT    Consulair Edit (and Edit II)
  372.  
  373. MPS    Apple MPW
  374.  
  375. KAHL    Think C
  376.  
  377. PJMM    Think Pascal
  378.  
  379. ALFA    Alpha
  380.  
  381. MACA    MacWrite
  382.  
  383. MSWD    Microsoft Word
  384.  
  385. nX^n    WriteNow
  386.  
  387. ttxt    TeachText
  388.  
  389. PEDT    DA Edit or PEdit
  390.  
  391. WNGZ    WingZ
  392.  
  393. WPC2    WordPerfect
  394.  
  395. L123    Lotus 1-2-3
  396.  
  397. CIM    CompuServe Information Manager
  398.  
  399. MRIP    TScript
  400.  
  401. Rich    BBEdit
  402.  
  403.  
  404.  
  405.     Default font is Monaco, default size is 9 and default creator is EDIT.
  406.  
  407.  
  408.  
  409. Set Tabs...
  410.  
  411.     Sets the number of spaces to one tab stop for the topmost window(default is 4 spaces to one
  412. tab).
  413.  
  414.  
  415.  
  416. Preferences...
  417.  
  418.     Displays a dialog box to allow changing of default preferences.  Font, size, creator and
  419. spaces per tab can be set.  The radio buttons and check boxes are covered below.
  420.  
  421.  
  422.  
  423. Strip LF
  424.  
  425.     Selecting the Strip LF option removes the linefeeds when the files are read in. 
  426.  
  427. SmartStrip
  428.  
  429.     SmartStrip is an intelligent linefeed remover in which linefeeds are removed when the
  430. file is read and replaced (after each CR or replacing each CR - depending on the input
  431. format) when the file is written back.  The default option is SmartStrip.
  432.  
  433. Don't Strip
  434.  
  435.     Don't remove any linefeeds on file open.
  436.  
  437.  
  438.  
  439. Auto Indent
  440.  
  441.     Toggles automatic indentation of text (useful for programmers).  Default is autoindent on.
  442.  
  443. New Untitled
  444.  
  445.     If selected, displays an Untitled window when starting Edit II (next time of course). 
  446. Default is on.
  447.  
  448. Print Headers
  449.  
  450.     If selected will print informative header information at the top of every page.  Default is to
  451. print these headers.
  452.  
  453. Cursor Jump
  454.  
  455.     Uses the '-' key on the keypad to invoke the cursor jump feature (see later).  Default is
  456. on.
  457.  
  458.  
  459.  
  460. Save Preferences Button
  461.  
  462.     Saves the option settings (all the items in the option menu) into the EditPrefs file which is
  463. stored in the Preferences folder of the System Folder.
  464.  
  465.  
  466.  
  467. Windows menu
  468.  
  469.  
  470.  
  471. Layer
  472.  
  473.     Layers all the windows neatly on the screen.  The previous frontmost window is brought to
  474. the front.  
  475.  
  476.  
  477.  
  478. Tile
  479.  
  480.     Tiles all the windows neatly on the screen.  The previous frontmost window is selected. 
  481. This option is active for 9 or less windows.  
  482.  
  483.  
  484.  
  485. Close All
  486.  
  487. Save All
  488.  
  489.     Closes (or saves) all the displayed windows.  Saving does not close any windows.  Any
  490. untitled windows will be 'saved as'.  
  491.  
  492.  
  493.  
  494. <window name list>
  495.  
  496.     Each of the window names appears here for rapid selection.  The first 9 windows have
  497. command key equivalents 'command-1' through 'command-9'.  Edit II can now handle
  498. unlimited windows (subject to available system memory set aside for it of course).
  499.  
  500.  
  501.  
  502. 3.    Keyboard Frolics
  503.  
  504.  
  505.  
  506. Cursor keys on the Macintosh Plus and above now work.  In addition, if you have an extended
  507. keyboard, then the extra keys between the main keys and keypad also work as follows:
  508.  
  509.  
  510.  
  511. page up
  512.  
  513.     Moves to the previous screenful of text without changing the insertion point.
  514.  
  515.  
  516.  
  517. page down
  518.  
  519.     Moves to the next screenful of text without changing the insertion point.
  520.  
  521.  
  522.  
  523. home
  524.  
  525.     Moves the insertion point to the beginning of the file.
  526.  
  527.  
  528.  
  529. end
  530.  
  531.     Moves the insertion point to the end of the file.
  532.  
  533.  
  534.  
  535. del (delete to right)
  536.  
  537.     Deletes the character to the right of the insertion point.
  538.  
  539.  
  540.  
  541. enter (on keypad)
  542.  
  543.     Scrolls to the insertion point.
  544.  
  545.  
  546.  
  547. - (on keypad)
  548.  
  549.     Jumps around the five insertion points last clicked at.  Note that double-clicking to select
  550. a word counts as two insertion points (a quirk of Capps’) and that Edit II will cycle
  551. through all five points, even though they are the same (like at the beginning).  So if the
  552. insertion point seems stuck, keep on pressing '-'!  Note that this can be turned off in the
  553. Preferences dialog.
  554.  
  555.  
  556.  
  557. F1–F4
  558.  
  559.     Undo, Cut, Copy and Paste.
  560.  
  561.  
  562.  
  563. option-return
  564.  
  565.     If autoindent mode is on, then hitting option-return will move the insertion point to the
  566. start of the next line and not to do any autoindenting for that line.
  567.  
  568.  
  569.  
  570. You can also toggle the special cursor pad mode by hitting the num lock key on the numeric
  571. keypad.  The num lock light on the keyboard will go off (indicating that the numeric keypad is
  572. now in cursor mode).  This displays an additional (disabled) menu called CursorPad.  The keys
  573. on the numeric keypad now take on special functionality as given below (like the I*M keypad):
  574.  
  575.  
  576.  
  577.  
  578.  
  579. 4.    GREP searching and replacement
  580.  
  581.  
  582.  
  583. GREP searching can be now done using regular expressions like the Unix GREP tool. Pattern
  584. matching of regular expressions is carried out as follows:
  585.  
  586.  
  587.  
  588. Patterns (regular expressions)
  589.  
  590.  
  591.  
  592. 1.    Any non-special character is a regular expression which matches itself.  Characters [ ] \
  593. and . are special characters and should be preceded by \ (see rule 4).
  594.  
  595.  
  596.  
  597. 2.    A regular expression can be concatenated with another regular expression.
  598.  
  599.  
  600.  
  601. 3.    The . (period) is a special character which matches any one character.
  602.  
  603.  
  604.  
  605. 4.    The \ followed by any character except ( ) < > or one of the digits 1-9 is a regular
  606. expression which matches that character.
  607.  
  608.  
  609.  
  610. 5.    A string of characters s surrounded by brackets [ ] forms a regular expression that
  611. exactly matches any one of the characters in s.  The    regular expression [^ß] matches
  612. any character not in the string ß.  If a sequence of 3 characters a-b occurs in the string,
  613. then this represents all the characters from a to b inclusive.
  614.  
  615.  
  616.  
  617. 6.    A regular expression R followed by * forms a regular expression which matches zero or
  618. more occurences of R.
  619.  
  620.  
  621.  
  622. 7.    A regular expression surrounded by \( and \) matches whatever the regular  expression
  623. matches.
  624.  
  625.  
  626.  
  627. 8.    A \ followed by a digit n 1 to 9 is a regular expression which matches whatever the nth
  628. subexpression surrounded by \( \) matches.
  629.  
  630.  
  631.  
  632. 9.    A regular expression surrounded by \< and \> constrains the match to occur when the
  633. regular expression is immediately preceded and followed by characters which do not match
  634. [A-Za-z0-9_] and the first and last characters match [A-Za-z0-9_].  This allows us to
  635. look for "words".
  636.  
  637.  
  638.  
  639. 10.    A regular expression which starts with ^ anchors the search pattern to the start of a line. 
  640. The ^ appearing anywhere else in the regular expression will match the character ^.
  641.  
  642.  
  643.  
  644. 11.    A regular expression ending in $ will anchor the search pattern to the end of a line.  The $
  645. appearing anywhere else in the regular expression will match the $.
  646.  
  647.  
  648.  
  649. Replacements
  650.  
  651.  
  652.  
  653. 1.    Each occurence of & in the replacement string will be substituted with whatever was last
  654. matched by the regular expression.
  655.  
  656.  
  657.  
  658. 2.    Each occurence of the form \n where n is a digit 1 to 9 will substitute whatever was
  659. matched by the nth subexpression enclosed in \( and \).
  660.  
  661.  
  662.  
  663. 3.    Each occurence of the form \p where p is not a digit 1 to 9 will substitute that character p.
  664.  
  665.  
  666.  
  667. 5.    Workarounds and other hints
  668.  
  669.  
  670.  
  671. Edit II can only search for a pattern in a forward direction.  If you want to search backwards,
  672. the best workaround is to go back to the start of the file (home) and then search.
  673.  
  674.  
  675.  
  676. All files are edited in memory.  So if you have a large file, reset the size of the application using
  677. Get Info on the Edit II application icon and change the size of the application memory. Or better
  678. still - run under the Finder (and not MultiFinder).  Naturally you shouldn't edit a 2MB file on a
  679. 1MB Mac using Edit II!  Try as far as possible to have approximately twice the memory assigned
  680. to Edit II than the total size of all the files you're editing.
  681.  
  682.  
  683.  
  684. Holding the option key when Edit II is starting up will bring up the standard file open dialog box
  685. for you to select the name of a file to edit.
  686.  
  687.  
  688.  
  689. Edit II will try to save files when memory runs too low but there is no guarantee that it won't
  690. crash while doing this.  The advice is to frequently check the available space (see the About Edit
  691. II... box to show the current amount of free memory).
  692.  
  693.  
  694.  
  695. Additional creator names can be inserted into the Creator menu by using ResEdit (use at your
  696. own risk!!).  Note that exactly FOUR letters must be keyed in for each creator name.
  697.  
  698.  
  699.  
  700. Holding the control key when quitting from Edit II will forcibly turn off the num lock LED (just
  701. in case you ever need it!).
  702.  
  703.  
  704.  
  705. 6.    Bug Reports
  706.  
  707.  
  708.  
  709. If you find any bugs with this program, please write to me at the above address. You can also
  710. send electronic mail to me on GEnie as K.SEAH, on America OnLine as KSeah or via Internet as
  711. kseah@procyon.austin.tx.us.
  712.  
  713.  
  714.  
  715. 7.    Warranty
  716.  
  717.  
  718.  
  719. Kenneth Seah hereby disclaims all warranties relating to this software, whether express or
  720. implied, including without limitation any implied warranties of merchantability or fitness for a
  721. particular purpose.  Kenneth Seah will not be liable for any special, incidental, consequential,
  722. indirect or similar damages due to loss of data or any other reason, even if Kenneth Seah or an
  723. agent of his has been advised of the possibility of such damages.  In no event shall Kenneth Seah's
  724. liability for any damages ever exceed the price paid for the license to use software, regardless
  725. of the form of the claim.  The person using the software bears all risk as to the quality and
  726. performance of the software.
  727.  
  728.  
  729.  
  730. 8.    Questionaire
  731.  
  732.  
  733.  
  734. Copy, print this and fill in the blanks!
  735.  
  736.  
  737.  
  738. REGISTERING FOR: Edit II Version 2.0.2 May 14, 1992
  739.  
  740.  
  741.  
  742. NAME:
  743.  
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754. ADDRESS:
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766. CITY:
  767.  
  768.  
  769.  
  770.  
  771.  
  772. STATE:
  773.  
  774.  
  775.  
  776.  
  777.  
  778. ZIP:
  779.  
  780.  
  781.  
  782. ELECTRONIC MAIL ADDRESSES (GEnie, InterNet, Compu$erve, AppleLink, America OnLine):
  783. [For updates and bug reports]
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793. Macintosh you have:
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.  
  803. Current version of your System Software:
  804.  
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815. Comments about Edit II (add more space if desired!):
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831. >>> Don't forget the US$15 shareware fee <<<
  832.  
  833.